/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.restaumanager.entite;

import java.io.Serializable;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import javax.persistence.Version;

/**
 * Classe de base des objets entité
 *
 * @author fabrice
 */
@MappedSuperclass
public abstract class BaseEntite implements Serializable, Cloneable {

    private static final long serialVersionUID = 1L;
    /**
     * La version de l'objet
     */
    @Version
    private int version = 1;

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public abstract String creerChaineModification(Object o);
}
